import time

# time.gmtime()
# print(time.gmtime())
# print(time.gmtime().tm_year)
# print(type(time.gmtime()))
# print(time.time())
# print(time.strftime('%Y %m %d', time.gmtime()))

# print('before')
# time.sleep(2)
# print('end')

# 1970 年 1 月1日0000
# 时间戳
print(time.time())  # 1526367575.5658405
# 1526367588.1618633

print(time.gmtime())
print(type(time.gmtime()))  # <class 'time.struct_time'>
print(time.gmtime().tm_year)
print(time.gmtime(2).tm_sec)

# a = 'python'
# print('%s 是哈哈' % a)
print("time.altzone %d " % int(time.altzone/3600))

print(time.strftime('%Y-%m-%d-%H:%M:%S', time.gmtime()))

print(time.localtime())
